<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>事件修饰符</title>
</head>
<body>
    <pre>
      1.阻止事件冒泡的 在后面加入.stop
      2.阻止浏览器的默认行为 .prevent
    </pre>
    <div class="app">
        <div @click="handel">
            <button @click.stop="handle1">点击</button>
        </div>
        <div>
            <a @click.prevent href="https://www.baidu.com/">百度一下</a>
        </div>
    </div>
    <script type="text/javascript" src="./js/vue.js"></script>
    <script type="text/javascript">
    var xm = new Vue({ 
        el: '.app',
        data: {

        },
        methods: {
            handel () {

            }
        }
    })
    
    
    
    </script>
    
</body>
</html>